import request from '@/utils/request'

// 查询SysCjWorkOrderBi列表
export function listSysCjWorkOrderBi(query) {
  return request({
    url: '/system/SysCjWorkOrderBi/list',
    method: 'get',
    params: query
  })
}

// 查询SysCjWorkOrderBi详细
export function getSysCjWorkOrderBi(year) {
  return request({
    url: '/system/SysCjWorkOrderBi/' + year,
    method: 'get'
  })
}

// 新增SysCjWorkOrderBi
export function addSysCjWorkOrderBi(data) {
  return request({
    url: '/system/SysCjWorkOrderBi',
    method: 'post',
    data: data
  })
}

// 修改SysCjWorkOrderBi
export function updateSysCjWorkOrderBi(data) {
  return request({
    url: '/system/SysCjWorkOrderBi',
    method: 'put',
    data: data
  })
}

// 删除SysCjWorkOrderBi
export function delSysCjWorkOrderBi(year) {
  return request({
    url: '/system/SysCjWorkOrderBi/' + year,
    method: 'delete'
  })
}
